-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add refresh shares with dealer functionality #665
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments, the main one is about possibly refactoring the API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to handle the serialization issue, avoiding returning the identity element
Visit the preview URL for this PR (updated for commit 52806ec): https://frost-book--pr665-refresh-shares-245-2l1szvtq.web.app (expires Thu, 01 Aug 2024 22:30:01 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: b7f43333fbf8fa5527ab3f0dd7bd10bb1fa7401c |
Split refresh_shares_with_dealer into calculate_zero_key and refresh_share
Add serialisation test
Fixed some typos
Diagram is still to be added
71666ea
to
42f3ebe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! It just needs fixing CI which requires just changing the import of Vec
.
I'm just not sure about the calculate_zero_key
name. I don't think the user should care about the fact that involves the zero key. Maybe something like compute_refreshing_shares
?
There's some places where I think we can make the code a bit clearer but I think I'll create a PR after this one merges and we can then discuss it.
Add tests for invalid identifiers when refreshing shares
This is to be compatible with the no_std attribute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
This closes #245